package com.yao.service.impl;

import com.yao.entity.Apple;
import com.yao.service.ApplePredicate;

public class AppleHeavyWeightPredicate implements ApplePredicate {

	
	/**
	 * 选择重量大于150的苹果
	 */
	@Override
	public boolean test(Apple apple) {
		return apple.getWeight() > 150;
	}

}
